# -*- coding: utf-8 -*-
# @Time    : 2021/3/26 15:43
# @Author  : lilu
# @Email   : 1906196327@qq.com
# @File    : 报名系统.py
# @Software: PyCharm


dir = {"戴军":["唱歌","娄底"],"胥子珍":["追剧","陕西"]}

print("欢迎进入报名系统！".center(50,"="))

name = input("请输入用户名：")
passward = input("请输入用户密码：")
if (name == "root") and (int(passward) == 123456):
    print("登录成功！".center(50,"="))
    num = input("按1查看报名详情，按2进入报名，按3退出系统:")
    while True:
        if int(num) == 1:
            print("报名信息为:")
            print("姓名   爱好   家庭住址")
            for i, j in dir.items():
                print(f"{i}   {j[0]}   {j[1]}")
            print("-"*50)
            num = input("按1查看报名详情，按2进入报名，按3退出系统:")

        if int(num) == 2:
            print("开始你的报名:")
            name1 = input("请输入你的名字：")
            hobby1 = input("请输入你的兴趣：")
            address1 = input("请输入你的家庭住址：")
            dir1 = {name1:[hobby1,address1]}
            dir.update(dir1)
            print("恭喜您，报名成功！")
            print("-" * 50)
            print("报名详情为，请确认您的信息！")
            for i, j in dir.items():
                print(f"{i}   {j[0]}   {j[1]}")
            print("-"*50)
            num = input("按1查看报名详情，按2进入报名，按3退出系统:")

        if int(num) == 3:
            print("退出成功！")
            print("-" * 50)
            break

